home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gst-python / 0.10 / defs / libs.defs < prev    next >
Encoding:
Text File  |  2009-02-21  |  14.5 KB  |  693 lines

  1. ;; -*- scheme -*-
  2. ; object definitions ...
  3.  
  4. (define-object ControlSource
  5.   (in-module "Gst")
  6.   (parent "GObject")
  7.   (c-name "GstControlSource")
  8.   (gtype-id "GST_TYPE_CONTROL_SOURCE")
  9. )
  10.  
  11. (define-object Controller
  12.   (in-module "Gst")
  13.   (parent "GObject")
  14.   (c-name "GstController")
  15.   (gtype-id "GST_TYPE_CONTROLLER")
  16. )
  17.  
  18. (define-object InterpolationControlSource
  19.   (in-module "Gst")
  20.   (parent "GstControlSource")
  21.   (c-name "GstInterpolationControlSource")
  22.   (gtype-id "GST_TYPE_INTERPOLATION_CONTROL_SOURCE")
  23. )
  24.  
  25. (define-object LFOControlSource
  26.   (in-module "Gst")
  27.   (parent "GstControlSource")
  28.   (c-name "GstLFOControlSource")
  29.   (gtype-id "GST_TYPE_LFO_CONTROL_SOURCE")
  30. )
  31.  
  32.  
  33. ;; Enumerations and flags ...
  34.  
  35. (define-flags ParamFlags
  36.   (in-module "Gst")
  37.   (c-name "GstParamFlags")
  38.   (values
  39.     '("controllable" "GST_PARAM_CONTROLLABLE")
  40.   )
  41. )
  42.  
  43. (define-enum InterpolateMode
  44.   (in-module "Gst")
  45.   (c-name "GstInterpolateMode")
  46.   (values
  47.     '("none" "GST_INTERPOLATE_NONE")
  48.     '("trigger" "GST_INTERPOLATE_TRIGGER")
  49.     '("linear" "GST_INTERPOLATE_LINEAR")
  50.     '("quadratic" "GST_INTERPOLATE_QUADRATIC")
  51.     '("cubic" "GST_INTERPOLATE_CUBIC")
  52.     '("user" "GST_INTERPOLATE_USER")
  53.   )
  54. )
  55.  
  56. (define-enum LFOWaveform
  57.   (in-module "Gst")
  58.   (c-name "GstLFOWaveform")
  59.   (gtype-id "GST_TYPE_LFO_WAVEFORM")
  60.   (values
  61.     '("sine" "GST_LFO_WAVEFORM_SINE")
  62.     '("square" "GST_LFO_WAVEFORM_SQUARE")
  63.     '("saw" "GST_LFO_WAVEFORM_SAW")
  64.     '("reverse-saw" "GST_LFO_WAVEFORM_REVERSE_SAW")
  65.     '("triangle" "GST_LFO_WAVEFORM_TRIANGLE")
  66.   )
  67. )
  68.  
  69. (define-enum DPVersion
  70.   (in-module "Gst")
  71.   (c-name "GstDPVersion")
  72.   (gtype-id "GST_TYPE_DP_VERSION")
  73.   (values
  74.     '("0-2" "GST_DP_VERSION_0_2")
  75.     '("1-0" "GST_DP_VERSION_1_0")
  76.   )
  77. )
  78.  
  79. (define-flags DPHeaderFlag
  80.   (in-module "Gst")
  81.   (c-name "GstDPHeaderFlag")
  82.   (values
  83.     '("none" "GST_DP_HEADER_FLAG_NONE")
  84.     '("crc-header" "GST_DP_HEADER_FLAG_CRC_HEADER")
  85.     '("crc-payload" "GST_DP_HEADER_FLAG_CRC_PAYLOAD")
  86.     '("crc" "GST_DP_HEADER_FLAG_CRC")
  87.   )
  88. )
  89.  
  90. (define-enum DPPayloadType
  91.   (in-module "Gst")
  92.   (c-name "GstDPPayloadType")
  93.   (values
  94.     '("none" "GST_DP_PAYLOAD_NONE")
  95.     '("buffer" "GST_DP_PAYLOAD_BUFFER")
  96.     '("caps" "GST_DP_PAYLOAD_CAPS")
  97.     '("event-none" "GST_DP_PAYLOAD_EVENT_NONE")
  98.   )
  99. )
  100.  
  101. ;; From ../gstreamer/libs/gst/controller/gst-controller.h
  102.  
  103. (define-function gst_controller_get_type
  104.   (c-name "gst_controller_get_type")
  105.   (return-type "GType")
  106. )
  107.  
  108. (define-function gst_controller_new_valist
  109.   (c-name "gst_controller_new_valist")
  110.   (return-type "GstController*")
  111.   (parameters
  112.     '("GObject*" "object")
  113.     '("va_list" "var_args")
  114.   )
  115. )
  116.  
  117. (define-function gst_controller_new_list
  118.   (c-name "gst_controller_new_list")
  119.   (is-constructor-of "GstController")
  120.   (return-type "GstController*")
  121.   (parameters
  122.     '("GObject*" "object")
  123.     '("GList*" "list")
  124.   )
  125. )
  126.  
  127. (define-function gst_controller_new
  128.   (c-name "gst_controller_new")
  129.   (return-type "GstController*")
  130.   (parameters
  131.     '("GObject*" "object")
  132.   )
  133.   (varargs #t)
  134. )
  135.  
  136. (define-method remove_properties_valist
  137.   (of-object "GstController")
  138.   (c-name "gst_controller_remove_properties_valist")
  139.   (return-type "gboolean")
  140.   (parameters
  141.     '("va_list" "var_args")
  142.   )
  143. )
  144.  
  145. (define-method remove_properties
  146.   (of-object "GstController")
  147.   (c-name "gst_controller_remove_properties")
  148.   (return-type "gboolean")
  149.   (parameters
  150.   )
  151.   (varargs #t)
  152. )
  153.  
  154. (define-method remove_properties_list
  155.   (of-object "GstController")
  156.   (c-name "gst_controller_remove_properties_list")
  157.   (return-type "gboolean")
  158.   (parameters
  159.    '("GList*" "list")
  160.   )
  161. )
  162.  
  163. (define-method set_disabled
  164.   (of-object "GstController")
  165.   (c-name "gst_controller_set_disabled")
  166.   (return-type "none")
  167.   (parameters
  168.     '("gboolean" "disabled")
  169.   )
  170. )
  171.  
  172. (define-method set_property_disabled
  173.   (of-object "GstController")
  174.   (c-name "gst_controller_set_property_disabled")
  175.   (return-type "none")
  176.   (parameters
  177.     '("gchar*" "property_name")
  178.     '("gboolean" "disabled")
  179.   )
  180. )
  181.  
  182. (define-method set_control_source
  183.   (of-object "GstController")
  184.   (c-name "gst_controller_set_control_source")
  185.   (return-type "gboolean")
  186.   (parameters
  187.     '("gchar*" "property_name")
  188.     '("GstControlSource*" "csource")
  189.   )
  190. )
  191.  
  192. (define-method get_control_source
  193.   (of-object "GstController")
  194.   (c-name "gst_controller_get_control_source")
  195.   (return-type "GstControlSource*")
  196.   (parameters
  197.     '("gchar*" "property_name")
  198.   )
  199. )
  200. (define-method set
  201.   (of-object "GstController")
  202.   (c-name "gst_controller_set")
  203.   (return-type "gboolean")
  204.   (parameters
  205.     '("gchar*" "property_name")
  206.     '("GstClockTime" "timestamp")
  207.     '("GValue*" "value")
  208.   )
  209. )
  210.  
  211. (define-method set_from_list
  212.   (of-object "GstController")
  213.   (c-name "gst_controller_set_from_list")
  214.   (return-type "gboolean")
  215.   (parameters
  216.     '("gchar*" "property_name")
  217.     '("GSList*" "timedvalues")
  218.   )
  219. )
  220.  
  221. (define-method unset
  222.   (of-object "GstController")
  223.   (c-name "gst_controller_unset")
  224.   (return-type "gboolean")
  225.   (parameters
  226.     '("gchar*" "property_name")
  227.     '("GstClockTime" "timestamp")
  228.   )
  229. )
  230.  
  231. (define-method unset_all
  232.   (of-object "GstController")
  233.   (c-name "gst_controller_unset_all")
  234.   (return-type "gboolean")
  235.   (parameters
  236.     '("gchar*" "property_name")
  237.   )
  238. )
  239.  
  240. (define-method get
  241.   (of-object "GstController")
  242.   (c-name "gst_controller_get")
  243.   (return-type "GValue*")
  244.   (parameters
  245.     '("gchar*" "property_name")
  246.     '("GstClockTime" "timestamp")
  247.   )
  248. )
  249.  
  250. (define-method get_all
  251.   (of-object "GstController")
  252.   (c-name "gst_controller_get_all")
  253.   (return-type "const-GList*")
  254.   (parameters
  255.     '("gchar*" "property_name")
  256.   )
  257. )
  258.  
  259. (define-method suggest_next_sync
  260.   (of-object "GstController")
  261.   (c-name "gst_controller_suggest_next_sync")
  262.   (return-type "GstClockTime")
  263. )
  264.  
  265. (define-method sync_values
  266.   (of-object "GstController")
  267.   (c-name "gst_controller_sync_values")
  268.   (return-type "gboolean")
  269.   (parameters
  270.     '("GstClockTime" "timestamp")
  271.   )
  272. )
  273.  
  274. (define-method get_value_arrays
  275.   (of-object "GstController")
  276.   (c-name "gst_controller_get_value_arrays")
  277.   (return-type "gboolean")
  278.   (parameters
  279.     '("GstClockTime" "timestamp")
  280.     '("GSList*" "value_arrays")
  281.   )
  282. )
  283.  
  284. (define-method get_value_array
  285.   (of-object "GstController")
  286.   (c-name "gst_controller_get_value_array")
  287.   (return-type "gboolean")
  288.   (parameters
  289.     '("GstClockTime" "timestamp")
  290.     '("GstValueArray*" "value_array")
  291.   )
  292. )
  293.  
  294. (define-method set_interpolation_mode
  295.   (of-object "GstController")
  296.   (c-name "gst_controller_set_interpolation_mode")
  297.   (return-type "gboolean")
  298.   (parameters
  299.     '("gchar*" "property_name")
  300.     '("GstInterpolateMode" "mode")
  301.   )
  302. )
  303.  
  304. (define-function object_control_properties
  305.   (c-name "gst_object_control_properties")
  306.   (return-type "GstController*")
  307.   (parameters
  308.     '("GObject*" "object"))
  309.   (varargs #t)
  310. )
  311.  
  312. (define-function object_uncontrol_properties
  313.   (c-name "gst_object_uncontrol_properties")
  314.   (return-type "gboolean")
  315.   (parameters
  316.     '("GObject*" "object")
  317.   )
  318.   (varargs #t)
  319. )
  320.  
  321. (define-function object_get_controller
  322.   (c-name "gst_object_get_controller")
  323.   (return-type "GstController*")
  324.   (parameters
  325.     '("GObject*" "object")
  326.   )
  327. )
  328.  
  329. (define-function object_set_controller
  330.   (c-name "gst_object_set_controller")
  331.   (return-type "gboolean")
  332.   (parameters
  333.     '("GObject*" "object")
  334.     '("GstController*" "controller")
  335.   )
  336. )
  337.  
  338. (define-function object_suggest_next_sync
  339.   (c-name "gst_object_suggest_next_sync")
  340.   (return-type "GstClockTime")
  341.   (parameters
  342.     '("GObject*" "object")
  343.   )
  344. )
  345.  
  346. (define-function object_sync_values
  347.   (c-name "gst_object_sync_values")
  348.   (return-type "gboolean")
  349.   (parameters
  350.     '("GObject*" "object")
  351.     '("GstClockTime" "timestamp")
  352.   )
  353. )
  354.  
  355. (define-function gst_object_set_control_source
  356.   (c-name "gst_object_set_control_source")
  357.   (return-type "gboolean")
  358.   (parameters
  359.     '("GObject*" "object")
  360.     '("gchar*" "property_name")
  361.     '("GstControlSource*" "csource")
  362.   )
  363. )
  364.  
  365. (define-function gst_object_get_control_source
  366.   (c-name "gst_object_get_control_source")
  367.   (return-type "GstControlSource*")
  368.   (parameters
  369.     '("GObject*" "object")
  370.     '("gchar*" "property_name")
  371.   )
  372. )
  373.  
  374. (define-function object_get_value_arrays
  375.   (c-name "gst_object_get_value_arrays")
  376.   (return-type "gboolean")
  377.   (parameters
  378.     '("GObject*" "object")
  379.     '("GstClockTime" "timestamp")
  380.     '("GSList*" "value_arrays")
  381.   )
  382. )
  383.  
  384. (define-function object_get_value_array
  385.   (c-name "gst_object_get_value_array")
  386.   (return-type "gboolean")
  387.   (parameters
  388.     '("GObject*" "object")
  389.     '("GstClockTime" "timestamp")
  390.     '("GstValueArray*" "value_array")
  391.   )
  392. )
  393.  
  394. (define-function object_get_control_rate
  395.   (c-name "gst_object_get_control_rate")
  396.   (return-type "GstClockTime")
  397.   (parameters
  398.     '("GObject*" "object")
  399.   )
  400. )
  401.  
  402. (define-function object_set_control_rate
  403.   (c-name "gst_object_set_control_rate")
  404.   (return-type "none")
  405.   (parameters
  406.     '("GObject*" "object")
  407.     '("GstClockTime" "control_rate")
  408.   )
  409. )
  410.  
  411. (define-function gst_controller_init
  412.   (c-name "gst_controller_init")
  413.   (return-type "gboolean")
  414.   (parameters
  415.     '("int*" "argc")
  416.     '("char***" "argv")
  417.   )
  418. )
  419.  
  420.  
  421.  
  422. ;; From gstcontrolsource.h
  423.  
  424. (define-function gst_control_source_get_type
  425.   (c-name "gst_control_source_get_type")
  426.   (return-type "GType")
  427.   (parameters
  428.   )
  429. )
  430.  
  431. (define-method get_value
  432.   (of-object "GstControlSource")
  433.   (c-name "gst_control_source_get_value")
  434.   (return-type "gboolean")
  435.   (parameters
  436.     '("GstClockTime" "timestamp")
  437.     '("GValue*" "value")
  438.   )
  439. )
  440.  
  441. (define-method get_value_array
  442.   (of-object "GstControlSource")
  443.   (c-name "gst_control_source_get_value_array")
  444.   (return-type "gboolean")
  445.   (parameters
  446.     '("GstClockTime" "timestamp")
  447.     '("GstValueArray*" "value_array")
  448.   )
  449. )
  450.  
  451. (define-method bind
  452.   (of-object "GstControlSource")
  453.   (c-name "gst_control_source_bind")
  454.   (return-type "gboolean")
  455.   (parameters
  456.     '("GParamSpec*" "pspec")
  457.   )
  458. )
  459.  
  460.  
  461.  
  462. ;; From gstinterpolationcontrolsource.h
  463.  
  464. (define-function gst_interpolation_control_source_get_type
  465.   (c-name "gst_interpolation_control_source_get_type")
  466.   (return-type "GType")
  467.   (parameters
  468.   )
  469. )
  470.  
  471. (define-function gst_interpolation_control_source_new
  472.   (c-name "gst_interpolation_control_source_new")
  473.   (is-constructor-of "GstInterpolationControlSource")
  474.   (return-type "GstInterpolationControlSource*")
  475.   (parameters
  476.   )
  477. )
  478.  
  479. (define-method set_interpolation_mode
  480.   (of-object "GstInterpolationControlSource")
  481.   (c-name "gst_interpolation_control_source_set_interpolation_mode")
  482.   (return-type "gboolean")
  483.   (parameters
  484.     '("GstInterpolateMode" "mode")
  485.   )
  486. )
  487.  
  488. (define-method set
  489.   (of-object "GstInterpolationControlSource")
  490.   (c-name "gst_interpolation_control_source_set")
  491.   (return-type "gboolean")
  492.   (parameters
  493.     '("GstClockTime" "timestamp")
  494.     '("GValue*" "value")
  495.   )
  496. )
  497.  
  498. (define-method set_from_list
  499.   (of-object "GstInterpolationControlSource")
  500.   (c-name "gst_interpolation_control_source_set_from_list")
  501.   (return-type "gboolean")
  502.   (parameters
  503.     '("GSList*" "timedvalues")
  504.   )
  505. )
  506.  
  507. (define-method unset
  508.   (of-object "GstInterpolationControlSource")
  509.   (c-name "gst_interpolation_control_source_unset")
  510.   (return-type "gboolean")
  511.   (parameters
  512.     '("GstClockTime" "timestamp")
  513.   )
  514. )
  515.  
  516. (define-method unset_all
  517.   (of-object "GstInterpolationControlSource")
  518.   (c-name "gst_interpolation_control_source_unset_all")
  519.   (return-type "none")
  520. )
  521.  
  522. (define-method get_all
  523.   (of-object "GstInterpolationControlSource")
  524.   (c-name "gst_interpolation_control_source_get_all")
  525.   (return-type "GList*")
  526. )
  527.  
  528. (define-method get_count
  529.   (of-object "GstInterpolationControlSource")
  530.   (c-name "gst_interpolation_control_source_get_count")
  531.   (return-type "gint")
  532. )
  533.  
  534.  
  535.  
  536. ;; From gstlfocontrolsource.h
  537.  
  538. (define-function gst_lfo_control_source_get_type
  539.   (c-name "gst_lfo_control_source_get_type")
  540.   (return-type "GType")
  541.   (parameters
  542.   )
  543. )
  544.  
  545. (define-function gst_lfo_waveform_get_type
  546.   (c-name "gst_lfo_waveform_get_type")
  547.   (return-type "GType")
  548.   (parameters
  549.   )
  550. )
  551.  
  552. (define-function gst_lfo_control_source_new
  553.   (c-name "gst_lfo_control_source_new")
  554.   (is-constructor-of "GstLfoControlSource")
  555.   (return-type "GstLFOControlSource*")
  556.   (parameters
  557.   )
  558. )
  559.  
  560. ;; From ../gstreamer/libs/gst/dataprotocol/dataprotocol.h
  561.  
  562. (define-function dp_init
  563.   (c-name "gst_dp_init")
  564.   (return-type "none")
  565. )
  566.  
  567. (define-function dp_packetizer_new
  568.   (c-name "gst_dp_packetizer_new")
  569.   (is-constructor-of "GstDpPacketizer")
  570.   (return-type "GstDPPacketizer*")
  571.   (parameters
  572.     '("GstDPVersion" "version")
  573.   )
  574. )
  575.  
  576. (define-function gst_dp_crc
  577.   (c-name "gst_dp_crc")
  578.   (return-type "guint16")
  579.   (parameters
  580.     '("const-guint8*" "buffer")
  581.     '("guint" "length")
  582.   )
  583. )
  584.  
  585. (define-function dp_header_payload_length
  586.   (c-name "gst_dp_header_payload_length")
  587.   (return-type "guint32")
  588.   (parameters
  589.     '("const-gchar*" "header")
  590.   )
  591. )
  592.  
  593. (define-function dp_header_payload_type
  594.   (c-name "gst_dp_header_payload_type")
  595.   (return-type "GstDPPayloadType")
  596.   (parameters
  597.     '("const-gchar*" "header")
  598.   )
  599. )
  600.  
  601. (define-function dp_header_from_buffer
  602.   (c-name "gst_dp_header_from_buffer")
  603.   (return-type "gboolean")
  604.   (parameters
  605.     '("const-GstBuffer*" "buffer")
  606.     '("GstDPHeaderFlag" "flags")
  607.     '("guint*" "length")
  608.     '("guint8**" "header")
  609.   )
  610. )
  611.  
  612. (define-function dp_packet_from_caps
  613.   (c-name "gst_dp_packet_from_caps")
  614.   (return-type "gboolean")
  615.   (parameters
  616.     '("const-GstCaps*" "caps")
  617.     '("GstDPHeaderFlag" "flags")
  618.     '("guint*" "length")
  619.     '("guint8**" "header")
  620.     '("guint8**" "payload")
  621.   )
  622. )
  623.  
  624. (define-function dp_packet_from_event
  625.   (c-name "gst_dp_packet_from_event")
  626.   (return-type "gboolean")
  627.   (parameters
  628.     '("const-GstEvent*" "event")
  629.     '("GstDPHeaderFlag" "flags")
  630.     '("guint*" "length")
  631.     '("guint8**" "header")
  632.     '("guint8**" "payload")
  633.   )
  634. )
  635.  
  636. (define-function dp_buffer_from_header
  637.   (c-name "gst_dp_buffer_from_header")
  638.   (return-type "GstBuffer*")
  639.   (parameters
  640.     '("guint" "header_length")
  641.     '("const-guint8*" "header")
  642.   )
  643. )
  644.  
  645. (define-function dp_caps_from_packet
  646.   (c-name "gst_dp_caps_from_packet")
  647.   (return-type "GstCaps*")
  648.   (parameters
  649.     '("guint" "header_length")
  650.     '("const-guint8*" "header")
  651.     '("const-guint8*" "payload")
  652.   )
  653. )
  654.  
  655. (define-function dp_event_from_packet
  656.   (c-name "gst_dp_event_from_packet")
  657.   (return-type "GstEvent*")
  658.   (parameters
  659.     '("guint" "header_length")
  660.     '("const-guint8*" "header")
  661.     '("const-guint8*" "payload")
  662.   )
  663. )
  664.  
  665. (define-function dp_validate_header
  666.   (c-name "gst_dp_validate_header")
  667.   (return-type "gboolean")
  668.   (parameters
  669.     '("guint" "header_length")
  670.     '("const-guint8*" "header")
  671.   )
  672. )
  673.  
  674. (define-function dp_validate_payload
  675.   (c-name "gst_dp_validate_payload")
  676.   (return-type "gboolean")
  677.   (parameters
  678.     '("guint" "header_length")
  679.     '("const-guint8*" "header")
  680.     '("const-guint8*" "payload")
  681.   )
  682. )
  683.  
  684. (define-function dp_validate_packet
  685.   (c-name "gst_dp_validate_packet")
  686.   (return-type "gboolean")
  687.   (parameters
  688.     '("guint" "header_length")
  689.     '("const-guint8*" "header")
  690.     '("const-guint8*" "payload")
  691.   )
  692. )
  693.